                

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>进货列表</title>
        <calendar:resources lang="en" theme="tiger"/>
        <style type="text/css">
            .searchbar {
                margin-top:10px;
                background-color:lightgrey;
                border:1px solid darkgrey;
                width:100%;
                height:30px;
                padding:5px;
            }
            .total {
                padding-top:5px;
                float:left;
                color:red;
            }
            .search {
                float :right;
                color:white;
            }
        </style>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="create" action="create">新的进货</g:link></span>
        </div>
        <div class="body">
            <h1>进货列表</h1>
            <g:if test="${flash.message}">
                <div class="message">${flash.message}</div>
            </g:if>
            <div class="searchbar">
                <div class="total">
                    系统总共进了${Product.countByProductFlag("进货")}批次货物
                </div>
                <div class="search">
                    <g:form action="listSearch">
                        <calendar:datePicker name="searchDate" defaultValue="${new Date()}"/>
                        <input class="save" type="submit" value="搜索" />
                    </g:form>
                </div>
            </div>
            <br>
            <div class="list">
                <g:render template="list"/>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${importProductInstanceTotal}" />
            </div>
        </div>
    </body>
</html>
